package leihua.crm.workbench.service;

import leihua.crm.workbench.domain.Customer;

import java.util.List;
import java.util.Map;

/**
 * @Author leiHua
 * @Date 2022/10/25 12:59
 */
public interface CustomerService {
    List<String> queryCustomerNameByCustomerName(String customerName);
    List<Customer> queryCustomerForPageByCondition(Map<String,Object> map);
    int queryCountOfCustomerForPageByCondition(Map<String,Object> map);
    Customer queryCustomerByName(String name);

    Customer queryCustomerForDetailByCustomerId(String customerId);

    int saveCreateCustomer(Customer customer);

    Customer queryCustomerByPrimaryKey(String customerId);
    //修改一条客户信息
    int editCustomer(Customer customer);

    //删除客户信息
    int deleteCustomerByIds(String []ids);
}
